<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns="http://www.w3.org/1999/xhtml" version="1.1">
    
<xsl:template match="parcels/header/menu">
<div id="navigation">
    <ul>
    <xsl:for-each select="row">
        <li>
            <xsl:attribute name="class">
                <xsl:choose>
                    <xsl:when test="active=1">selected</xsl:when>
                    <xsl:otherwise>item</xsl:otherwise>
                </xsl:choose>
            </xsl:attribute>
            <xsl:attribute name="id">link_<xsl:value-of select="id" /></xsl:attribute>
            <span class="left">
                <xsl:attribute name="id">left_<xsl:value-of select="id" /></xsl:attribute>
                <!-- Design Element -->
            </span>
            <xsl:choose>
                <xsl:when test="not(description=0)">
                    <span title="{description}">
                        <a href="{link}"><xsl:value-of select="title" /></a>
                    </span>
                </xsl:when>
                <xsl:otherwise>
                    <a href="{link}"><xsl:value-of select="title" /></a>
                </xsl:otherwise>
            </xsl:choose>
            <span class="right">
                <xsl:attribute name="id">right_<xsl:value-of select="id" /></xsl:attribute>
                <!-- Design Element -->
            </span>
        </li>
    </xsl:for-each>
    </ul>
</div>
</xsl:template>
</xsl:stylesheet>